import { network } from '@/utils';

import { partner, logisCenter } from '../../config/Apis';

export async function queryCurrent(): Promise<any> {
  return network.get(logisCenter.auth_user);
}

export async function logout(): Promise<any> {
  const params = {
    _content_type: 'json',
  };
  return network.get(partner.me_logout, {
    params,
  });
}
